<?php
/**
 * 推荐用户模块 控制器
 *
 * @author    wangmx <wangmx@yunys.com.cn>
 * @copyright 2016 QuanZhouYunYiShang Inc.
 */
namespace App\Http\Controllers\Api;

use Illuminate\Http\Request;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
use Response;
use App\Services\UserService\CommendService;

class CommendUserController extends BaseController
{
    protected $commend;

    public function __construct(CommendService $commend)
    {
        $this->commend = $commend;
    }


    /**
     * @return CommendService
     */
    public function getCommend()
    {
        return $this->commend;
    }

    /**
     * 推荐设计师
     */
    public function recommendDesigner(Request $request){
        $result = $this->getCommend()->recommendDesigner($request);
        return $result;
    }

    /**
     * 推荐品牌
     */
    public function recommendBrand(Request $request){
        $result = $this->getCommend()->recommendBrand($request);
        return $result;
    }
    



}
